/*
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2023-10-19 16:25:44
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2023-10-22 18:01:13
 */
import { Column,Entity,PrimaryGeneratedColumn,DeleteDateColumn } from 'typeorm'
import {ApiProperty } from '@nestjs/swagger'
type mediumint = number;
@Entity('base_area')
export class BaseArea{
     @ApiProperty({
        description: 'id', default: null, type: 'number',
        example: 1, required: false,
    })
    @PrimaryGeneratedColumn({ type: "int"})
    id: number;

    @ApiProperty({
        description: 'codeid', default: null, type: 'mediumint',
        example: 11, required: false,
    })
    @Column()
    codeid: mediumint;

    @ApiProperty({
        description: 'parentid', default: null, type: 'mediumint',
        example: 0, required: false,
    })
    @Column()
    parentid: mediumint;

    @ApiProperty({
        description: 'city_name', default: null, type: 'string',
        example: '', required: false,
        // enum: [0, 1],
    })
    @Column({ type: "varchar"})
    city_name: string;
}

